Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused and useless code #717

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

DanielSchiavini
Copy link
Contributor

@DanielSchiavini DanielSchiavini commented Feb 28, 2025

  • remove unused code
  • simplify useless code
  • remove useless comments
  • remove global react imports
  • remove empty lines in import statements

Copy link

vercel bot commented Feb 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 0:00am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 0:00am

@@ -43,16 +43,6 @@ export type Snapshot = {
discountLoan: number
}

export type PoolPrice = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't delete these as they have to be exported for package users (like Curve Monitor). Prob best to exclude this package from the automated tools?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are these types for? They aren't used anywhere

@@ -10,7 +10,7 @@ import styled, { css } from 'styled-components'
import { isInProgress, taskStepStatusStyles } from './helpers'
import Button from 'ui/src/Button'
import Spinner from 'ui/src/Spinner/Spinner'
import StepModal from 'ui/src/Stepper/StepModal'
import { StepModal } from 'ui/src/Stepper'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, how did your tool not see import * as React from 'react' which can be removed as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import * is tricky to detect, I guess. I'll convert those imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This opened a whole can of worms, sorry for the large diff 💀

OnlyJousting
OnlyJousting previously approved these changes Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants